package great.project.dto;

import great.project.annotation.IdentityCardNumber;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;

/**
 * <div  style="border:2px solid none;margin:20px;padding:15px;font-size:24px;text-align:center;color:aqua;">
 *
 *
 *
 *  </div>
 *
 * @author zhangshun
 * @date 2021/2/5 16:27
 */
@Data
@ToString
public class UserInfo {

	@NotBlank(message = "年龄不为空")
	@Max(value = 18, message = "不能超过18岁")
	private String age;

	@NotBlank(message = "性别不能为空")
	private String gender;

	@NotBlank(message = "身份证号不能为空")
	@IdentityCardNumber
	private String idCard;

}